import json
import os
import webbrowser
from copy import deepcopy
from datetime import datetime
from pprint import pprint
from threading import Thread
from time import sleep

import pandas as pd
from flask import Flask, jsonify, render_template, request


# 项目所在目录的绝对的路径
PROJECT_DIR = os.path.dirname(os.path.abspath(__file__))

# 创建flask app
app = Flask(__name__, template_folder="templates", static_url_path='/static')

# 设置页面热更新
app.jinja_env.auto_reload = True
app.config['TEMPLATES_AUTO_RELOAD'] = True




@ app.route('/logicflow')
def logicflowPage():
    return render_template("logicflow.html")

@ app.route('/logicflow_mini')
def logicflowMiniPage():
    return render_template("logicflow_mini.html")



if __name__ == "__main__":

    app.run() 
